package com.example.shiyansan.vo;

import com.example.shiyansan.entity.Cart;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CartVo{
    private Integer cartId;
    private String username;
    private Double sum;
    private List<CartItem> cartItemList;

    @Data
    public static class CartItem{
        private Integer bookId;

        private String bookName;
        private Integer quantity;
        private Double price;
    }
}
